import request from "@/request/api";

//检修计划包接口
//1.检修计划包查询接口
export function queryPlanPackageList(data) {
  return request({
    url: "/eam-service-plan/package/queryList",
    method: "get",
    params: data,
  });
}
//1.检修计划包详情
export function queryPlanPackageDetail(data) {
  return request({
    url: "/eam-service-plan/package/selectOne",
    method: "get",
    params: data,
  });
}
//2、检修计划包新增或修改接口
export function addOrUpdatePlanPackage(data) {
  return request({
    url: "/eam-service-plan/package/saveOrUpdate",
    method: "post",
    data: data,
  });
}
//2、、检修计划包删除接口
export function deletePlanPackage(data) {
  return request({
    url: "/eam-service-plan/package/deleteById",
    method: "delete",
    params: data,
  });
}

//根据检修包id统计
export function countPlanPackage(data) {
  return request({
    url: "/eam-service-plan/package/statById",
    method: "get",
    params: data,
  });
}

//检修包详情计划列表查询
export function issuePlanList(data) {
  return request({
    url: "/eam-service-plan/issue/issueList",
    method: "get",
    params: data,
  });
}
//检修计划详情接口
export function getIssuePlanDetail(data) {
  return request({
    url: "/eam-service-plan/issue/getById",
    method: "get",
    params: data,
  });
}
//检修计划新增或修改接口
export function addOrUpdateIssuePlan(data) {
  return request({
    url: "/eam-service-plan/issue/saveOrUpdate",
    method: "post",
    data: data,
  });
}
//检修计划删除接口
export function deleteIssuePlan(data) {
  return request({
    url: "/eam-service-plan/issue/deleteById",
    method: "get",
    params: data,
  });
}
//下发计划
export function issuePlan(data) {
  return request({
    url: "/eam-service-plan/issue/issued",
    method: "get",
    params: data,
  });
}
